﻿@model CSharpDay11__Entity_Framework_.Models.Artist
<!--Used by both the Add and Edit Artist actions-->
<br />
<h3 class="text-center page-header">Add Artist</h3>
<div class="container">
    <form method="post" class="well col-sm-6 col-sm-offset-3">
        @Html.LabelFor(x => x.Name) <br />
        @Html.TextBoxFor(x => x.Name, new { @class = "form-control" })<br />
        @Html.LabelFor(x => x.IsAlive) <br />
        <select class="form-control" name="IsAlive">
            @{
                if (Model.IsAlive == true)
                {
                    <option value="true" selected>Yes</option>
                    <option value="false">No</option>
                }
                else
                {
                    <option value="true">Yes</option>
                    <option value="false" selected>No</option>
                }
            }
        </select>
        @Html.LabelFor(x => x.ImageUrl) <br />
        @Html.TextBoxFor(x => x.ImageUrl, new { @class = "form-control" })<br />
        @Html.HiddenFor(x => x.Id)
        <button type="submit" class="btn btn-info">Submit</button>
    </form>
</div>